fhg2a.relogo
[Groovy] Class Gatherer

java.lang.Object
  fhg2a.ReLogoTurtle
      Tribe
          Gatherer

class Gatherer
extends Tribe

Tribe that relies solely on wild cereal for sustenance, and has perfect global knowledge.


Method Summary
java.lang.Object forage()

Forage one year's worth of cereal.

java.lang.Object move()

Move tribe to the best patch on the grid (including patch it is on).

 
Methods inherited from class Tribe
agentOnDesert, agentOnLush, agentOnMiddle, birthsOnDesert, birthsOnLush, birthsOnMiddle, cull, deathsOnDesert, deathsOnLush, deathsOnMiddle, forage, migrationsToDesert, migrationsToLush, migrationsToMiddle, move, reproduce, reset, step
 

Method Detail

forage

java.lang.Object forage()
Forage one year's worth of cereal. Decrease population if enough food is not gathered.


move

java.lang.Object move()
Move tribe to the best patch on the grid (including patch it is on). Patches are ranked by cereal density.